//
//  LZGroupDetailModel.m
//  laziz_Consumer
//
//  Created by xbn_iMac on 2016/12/6.
//  Copyright © 2016年 XBN. All rights reserved.
//

#import "LZGroupDetailModel.h"
#import "MJProperty.h"
#import "LZDateFormatterManager.h"

@implementation LZGroupDetailModel

+ (NSDictionary *)mj_replacedKeyFromPropertyName
{
    return @{@"groupId": @"id"};
}


+ (NSDictionary *)mj_objectClassInArray
{
    return @{
             @"grouponUsers" : @"LZGroupUser",
             };
}

- (id)mj_newValueFromOldValue:(id)oldValue property:(MJProperty *)property
{
    if ([oldValue isKindOfClass:[NSNull class]])
        return @"";
    
    if ([property.name isEqualToString:@"createTime"]) {
        
        NSString *publishTime = [[LZDateFormatterManager shareInstance] stringFromStringNormalHaveLineyyyyMMddHHmmss:oldValue];
        return publishTime;
    }
    
    return oldValue;
}
@end
